package com.ktjiaoyu.mapper;

import com.ktjiaoyu.pojo.StorageRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Author: DABINGCHNEGJIAO
 * @CreateTime: 2025-05-23
 * @Description:
 * @Version: 1.0
 */
public interface StorageRecordMapper {
    /**
     * 根据条件查询入库记录
     */
    StorageRecord getStorageRecordLikes(@Param("goodsName") String goodsName, @Param("supplierId") Integer supplierId, @Param("payStatus") Integer payStatus);

    /**
     * 根据条件查询入库记录
     * where
     */
    StorageRecord getStorageRecordListByWhere(@Param("supplierId") Integer supplierId, @Param("payStatus") Integer payStatus, @Param("goodsName") String goodsName);

    /**
     * forEach
     * 根据入库单编码批量查询
     *
     * @Param List
     */
    List<StorageRecord> getStorageRecordListByCodeArray(@Param("srCode") String[] srCode);

    /**
     * forEach
     * 根据入库单编码批量查询
     *
     * @Param Array
     */
    List<StorageRecord> getStorageRecordListByList(@Param("srCode") List<String> srCode);

    /**
     * forEach
     * 根据入库单编码批量查询
     *
     * @Param map
     */
    List<StorageRecord> getStorageRecordListByMap(@Param("srCode") Map<String, Object> map);

    /**
     * 分页查询
     */
    List<StorageRecord> selectListByPage(@Param("pageBegin") Integer pageBegin, @Param("pageSize") Integer pageSize);
}
